/*
* 调用之前需引入<script src="https://webapi.amap.com/maps?v=1.4.10&key=30556745e1796cbe4f69a621a8bc58bf&&plugin=AMap.Geocoder"></script>
* 方法返回值
*
* {"regeocode":{"addressComponent":{"city":[],"province":"北京市","adcode":"110105","district":"朝阳区","towncode":"110105031000","streetNumber":{"number":"1号","location":"116.396497,39.992905","direction":"北","distance":"23.0674","street":"国家体育场南路"},"country":"中国","township":"奥运村街道","businessAreas":[{"location":"116.40694570456199,39.993097244026124","name":"亚运村","id":"110105"},{"location":"116.39174022522513,40.01211199549549","name":"奥运村","id":"110105"},{"location":"116.40273802378597,40.00230807234885","name":"大屯","id":"110105"}],"building":{"name":"国家体育场","type":"生活服务;生活服务场所;生活服务场所"},"neighborhood":{"name":[],"type":[]},"citycode":"010"},"formatted_address":"北京市朝阳区奥运村街道国家体育场"},"info":"OK","infocode":"10000"}
*
*
* */
function lnglat(lon,lat){
    var geocoder = new AMap.Geocoder({
        // city 指定进行编码查询的城市，支持传入城市名、adcode 和 citycode
        city: ''
    })
    var lnglat = [lon, lat]
    var addersdata = "";
    geocoder.getAddress(lnglat, function(status, result) {
        if (status === 'complete' && result.info === 'OK') {
            // result为对应的地理位置详细信息
            addersdata = result;
        }
    })
    return addersdata;
}